<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script type="text/javascript" src="../static/js/vue-2.5.16.js"></script>
</head>
<body>
    <div id='app'>
        <!-- 组件使用 -->
        <zujian_all></zujian_all>
    </div>
    <script>
        var zujian_a={
            // 局部组件定义
            template:'<div>局部组件定义</div>'
        }
        Vue.component(
            // 组件定义
            'zujian_all',
            {
                template:'<div>全局组件定义 <zujian_a></zujian_a></div>',
                components:{
                    zujian_a
                }
            }
        )
        new Vue({
            el:'#app',
            data:{},
            methods:{}
        })
    </script>
</body>
</html>